import request from '@/utils/request'

// 查询文章二级分类列表
export function pageRetirementClassTwo(query) {
  return request({
    url: '/retirement/retirementClassTwo/page',
    method: 'get',
    params: query
  })
}

// 查询文章二级分类列表
export function listRetirementClassTwo(query) {
  return request({
    url: '/retirement/retirementClassTwo/list',
    method: 'get',
    params: query
  })
}

// 查询文章二级分类详细
export function getRetirementClassTwo(id) {
  return request({
    url: '/retirement/retirementClassTwo/' + id,
    method: 'get'
  })
}

// 新增文章二级分类
export function addRetirementClassTwo(data) {
  return request({
    url: '/retirement/retirementClassTwo',
    method: 'post',
    data: data
  })
}

// 修改文章二级分类
export function updateRetirementClassTwo(data) {
  return request({
    url: '/retirement/retirementClassTwo',
    method: 'put',
    data: data
  })
}

// 删除文章二级分类
export function delRetirementClassTwo(id) {
  return request({
    url: '/retirement/retirementClassTwo/' + id,
    method: 'delete'
  })
}
